package day20171019;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LoopSleep {
    public static void main(String[] args) throws InterruptedException {

        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        for(int i=0 ;i<10 ;i++){
            System.out.println("现在的时间："+df.format(new Date()));
            System.out.println("现在的时间：" + System.currentTimeMillis());
            Thread.currentThread().sleep(3000);
        }
    }
}
